<?php

namespace App\Helper;

class ApiResponseHelper
{
    public static function json($data, $status=200, $message="成功！")
    {
        return response()->json([
            'data' => $data,
            'message' => $message
        ])->setStatusCode($status);
    }
}
